package com.yaorange.module.system.mapper;

import com.yaorange.pojo.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysUserRoleRepository {
    void deleteRelationByUserId(Long userId);

    void insertRelation(Long userId, List<Long> roleIds);

    @Select("select * from sys_user_role where user_id=#{id}")
    List<SysUserRole> findById(Integer id);
}
